Data-flow-based Testing of Object-Oriented Libraries DCS-TR-382
نویسندگان
چکیده
Data-flow-based testing is a well-established approach to program testing. Much object-oriented code is written as libraries; hence data-flow-based testing of object-oriented libraries is of great importance. However, finding def-use associations in libraries written in object-oriented languages (e.g., C++ and Java) is difficult because of unknown aliasing between parameters, unknown concrete types of the parameters, dynamic dispatch and exceptions. We present the first algorithm for finding def-uses in object-oriented libraries that overcomes the above difficulties. We also show how the information computed by our algorithm can be used in generating relevant test cases.
منابع مشابه
Relevant Context Inference DCS - TR - 360 ∗
Relevant context inference (RCI) is a modular technique for flowand context-sensitive data-flow analysis of statically typed object-oriented programming languages such as C and Java. RCI can be used to analyze complete programs as well as incomplete programs such as libraries; this approach does not require that the entire program be memory-resident during the analysis. We show that RCI can han...
متن کاملData-flow-based Testing of Object-Oriented Libraries
Data-flow-based testing is a well-established approach to program testing. Much object-oriented code is written as libraries; hence data-flow-based testing of object-oriented libraries is of great importance. However, finding def-use relationships in libraries written in object-oriented languages (e.g., Java and C++) is difficult because of unknown aliasing between parameters, unknown concrete ...
متن کاملA Fitness Function for Modular Evolutionary Testing of Object-Oriented Programs
We show that encapsulation of states in objectoriented programs hinders the search for test data using evolutionary testing. In a well-designed objectoriented program the encapsulated or hidden state is accessible only through exported or public methods. As client code is oblivious to the internal state of a server object, no guidance is available to test the client code using evolutionary test...
متن کاملA novel hybrid object-oriented class testing method
A hybrid testing method, discussed in this research, combines state-based testing with data flow analysis to test classes at the intra-class level. Employing state-based testing, the method can generate all possible test message sequences. Using data flow analysis, the method can also detect whether data anomalies exist in those generated sequences, and then compute data flow test cases, which ...
متن کاملTesting C++ Libraries for Conformance to their Specifications
While the object-oriented paradigm offers a greater potential for achieving higher interoperability among software systems as compared to other paradigms, much work needs to be done in assessing the interoperability among object-oriented systems. The work described here aims to address the issue of assessing the interoperability of object-oriented software systems on the basis of the interopera...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1999